package com.example.demo.service;

import com.example.demo.entity.Image;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface Select {
//    图片查询接口
    public List<Image> select();
//    图片链接添加接口
    public boolean addhttpImage(String Image,
                                String originalImage,
                                Long type,
                                String title);

//    本地图片添加
    public Boolean addlocalImage(MultipartFile file,
                                 MultipartFile originalfile,
                                 Long type,
                                 String title) throws Exception;
//    图片更改接口
    public boolean updataImage(Image newImage,Image oldImage);
//    图片删除接口(在本地)
    public boolean delecthttpImage(String addrImage,String addroriginalfile);

//    图片删除接口（只有链接的）
    public boolean delectlocalImage(String addrImage,String addroriginalfile);

//    模糊查询接口
    public List<Image> vagueImageSelect(String title);

//    图片下载
    public boolean downloadImage(String urlString, String filename);
}
